<%--
  Created by IntelliJ IDEA.
  User: 26056
  Date: 2021/5/10
  Time: 19:52
  To change this template use File | Settings | File Templates.
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script src="js/jquery-3.3.1.min.js"></script>
<html>
<head>
    <title>收藏</title>
</head>
<body>

<h1>你的收藏：</h1>

<c:forEach items="${Collection}" var="str" varStatus="s">

    <form action="/display" method="post">
            ${s.count}. ${str.collection}
        <input type="hidden" name="reqArticle" value = "${str.collection}"><br>
        <input type="submit" value="查看收藏文章"><br>
    </form>
    <form action="/DeleteCollection" mentod="post">
        <input type="hidden" name="reqArticle" value = "${str.collection}"><br>
        <input type="submit" value="删除收藏文章">
    </form>

</c:forEach>

<td>
    <form action="/index.jsp" method="post">
        <input type="submit" value="返回主页">
    </form>
</td>

</body>
</html>
